package com.cskaoyan.mall.mapper;

import com.cskaoyan.mall.bean.Storage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Zsp
 * 2021/1/10
 */
public interface StorageMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Storage record);

    int insertSelective(Storage record);

    Storage selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Storage record);

    int updateByPrimaryKey(Storage record);

    List<Storage> selectOrderByAddTimeDesc(@Param("name") String name, @Param("key") String key, @Param("sort") String sort, @Param("order") String order);

    Integer deleteById(Storage storage);
}